/*
** hstrlen.c
**
** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
** Redistributed by permission.
*/

#include "pictor.h"


/*
** Works like strlen() except '~' characters (used in strings
** formatted for hputs()) are not counted.
*/
int hstrlen(char *str)
{
	int len;

	for(len = 0;*str != '\0';str++)
		if(*str != '~' || *(str + 1) == '\0')
			len++;

	return(len);

} /* lstrlen */
